<include file="Public:header_new"/>
<script type="text/javascript" src="/Public/layer/laydate/laydate.js"></script>
<div class="usncont">
	<!--左侧导航开始-->
	<include file="Public:left" />
	<!--左侧导航结束-->
	<div class="usnc_right">
		<div class="topinfo">
			<div class="select">
				<ul>
				<volist name="market_list" id="vo">
					<if condition="$vo['name'] eq $market">
						<li class="selected" style="width:230px;">
							<a href="/Finance/mywt/market/{$vo['name']}">{$vo['name']|convmarket}{$Think.lang.sFinance_mywt_lsdd}</a>
						</li>
					<else/>
						<li style="width:230px;">
							<a href="/Finance/mywt/market/{$vo['name']}">{$vo['name']|convmarket}{$Think.lang.sFinance_mywt_lsdd}</a>
						</li>
					</if>
				</volist>
				</ul>
			</div>
		</div>
		<div class="botinfo">
			<form action="" method="get">
				<div class="selecttype">
					<div class="title">{$Think.lang.sFinance_mycj_lx}{$Think.lang.sTrade_index_cnmh}</div>
					<select name="type" class="paysel">
						<option value="">{$Think.lang.sFinance_mycj_qb}</option>
						<option value="1" <if condition="!empty($_GET['type']) && $_GET['type'] eq 1">selected='selected'</if>>{$Think.lang.sTrade_index_mr}</option>
						<option value="2" <if condition="!empty($_GET['type']) && $_GET['type'] eq 2">selected='selected'</if>>{$Think.lang.sTrade_index_mc}</option>
					</select>
				</div>
				<div class="search">
					<input type="submit" value="{$Think.lang.sFinance_mycj_cx}" />
				</div>
				<div class="selecttime">
					<div class="title">{$Think.lang.sFinance_mycj_sj}{$Think.lang.sTrade_index_cnmh}</div>
					<input type="text" class="shaixuantime" name="starttime" value="{$starttime}" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" placeholder="{$Think.lang.sFinance_mycj_kssj}" />
					<input type="text" class="shaixuantime" name="endtime" value="{$endtime}" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" placeholder="{$Think.lang.sFinance_mycj_jssj}" />
				</div>
			</form>
		</div>
		<div class="recharge_list nmt">
			<table>
				<tr>
					<th width="150px">{$Think.lang.sFinance_mycj_bzmc}</th>
					<th width="160px">{$Think.lang.sFinance_mywt_wtsj}</th>
					<th width="100px" class="last">
					   {$Think.lang.sFinance_mycj_lx}
					</th>
					<th width="140px">{$Think.lang.sFinance_mywt_wtjg}</th>
					<th width="140px">{$Think.lang.sFinance_mywt_wtsl}</th>
					<th>{$Think.lang.sFinance_mywt_ycjl}</th>
					<th width="110px" class="last">{$Think.lang.sFinance_mywt_wtzt}</th>
				</tr>
				<volist name="list" id="vo">
				  <tr>
				   <td>
				   <if condition="LANG_SET eq 'en-us'">
					{$coin_list[$market_list[$vo['market']]['xnb']]['js_yw']}
				   <else/>
					{$coin_list[$market_list[$vo['market']]['xnb']]['title']}
				   </if	>
				   ({$market_list[$vo['market']]['xnb']|strtoupper}/{$market_list[$vo['market']]['rmb']|strtoupper})</td>
				   <td>{$vo.addtime|date='m-d H:i:s',###}</td>
				   <td><eq name="vo.type" value="1"> <font class="buy">{$Think.lang.sTrade_index_mr}</font> <else /> <font class="sell">{$Think.lang.sTrade_index_mc}</font></eq></td>
				   <td>{$vo['price']}<!-- /￥{$vo['price_rmb']}/${$vo['price_usd']} --></td>
				   <td>{$vo['num']}</td>
				   <td>{$vo['deal']}</td>
				   <td><eq name="vo.status" value="0">{$Think.lang.sFinance_mywt_jyz} | <a class="cancel" id="{$vo.id}" href="javascript:void(0);">{$Think.lang.sTrade_index_cx}</a></eq> <eq name="vo.status" value="1">{$Think.lang.sFinance_mywt_ywc}</eq> <eq name="vo.status" value="2">{$Think.lang.sFinance_mywt_ycx}</eq></td>
				  </tr>
				  </volist>
			</table>
			<div class="pages">{$page}</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	var cancel = "{$cancel_token}";
    $("#type-selectTest,#status-selectTest,#market-selectTest").change(function(){
        var type=$("#type-selectTest option:selected").val();
        var status=$("#status-selectTest option:selected").val();
        var market=$("#market-selectTest option:selected").val();
        window.location='/Finance/mywt/type/'+type+'/status/'+status+'/market/'+market+'.html';
    });
	function closetanchu(){
		layer.closeAll('loading');
	}
    $('.cancel').click(function(){
		layer.load(0, {shade: [0.5,'#8F8F8F']});
        $.post("{:U('Trade/chexiao')}",{id : $(this).attr('id'), token:cancel},function(data){
			cancel = data.url;
			setTimeout("closetanchu()",4000);
            if(data.status==1){
                layer.msg(data.info,{icon : 1 });
				window.location.href=window.location.href;
            }else{
                layer.msg(data.info,{icon : 2 });
            }
        });
    });
</script>
<include file="Public:footer_new"/>